
public class CommandWords
{
    
    public CommandWords()
    {
        
    }
    
    public boolean isCommand(String aString)
    {
        Word[] words = Word.values();
        for(int i = 0; i < words.length; i++) {
            if(words[i].isSameWord(aString))
            return true;
        }
        return false;
    }
    
    public static String allCommandWords(){
        Word[] words = Word.values();
        String result="";
        for(Word w : words){
           result += w.getCommandWord() + " ";
        }
        return result;
    }
}
    